<?php

namespace App\Http\Controllers;

use App\Services\IMasterService;
use App\Services\IOrderService;
use Illuminate\Http\Request;

class IndexController extends Controller
{
    /**
     * 首页
     * @param Request $request
     */
    public function index(Request $request,IOrderService $orderService){
        $countMatchingOffering = $orderService->countMatchingOffering(getCurrentUserid());

        return view('index/index',['countMatchingOffering'=>$countMatchingOffering]);
    }
}
